package cn.edu.ncut.cs.springboot.petmanagementsystem.mapper;

import cn.edu.ncut.cs.springboot.petmanagementsystem.pojo.ServiceReservation;
import cn.edu.ncut.cs.springboot.petmanagementsystem.vo.FosterRecordVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ServiceReservationMapper extends BaseMapper<ServiceReservation> {
    
    /**
     * 查询寄养记录（关联宠物信息）
     */
    IPage<FosterRecordVO> selectFosterRecordsWithPetInfo(Page<FosterRecordVO> page, 
                                                          @Param("userId") Long userId, 
                                                          @Param("petId") Long petId);
}
